package com.jiaomatech.demo.order.service.impl;

import com.jiaomatech.demo.order.dto.OrderDto;
import com.jiaomatech.demo.order.service.OrderService;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Service;

import java.math.BigDecimal;

/**
 * Description: 订单操作 .<br>
 *
 * @author m-xy
 *     Created By 2019/10/18 14:20
 */
@Service
public class OrderServiceImpl implements OrderService {
    private final static Logger logger = LoggerFactory.getLogger(OrderServiceImpl.class);

    @Override
    public OrderDto findOrderById(String userId) {
        // TODO Mock数据需要处理
        OrderDto mock = new OrderDto();
        mock.setOrderId("201910201901011129");
        mock.setBuyerName("10");
        mock.setBuyerName("刘强西");
        mock.setSellerName("北京世纪经贸合作有限公司");
        mock.setPrice(new BigDecimal("1999.09"));
        return mock;
    }
}
